package cn.yuanqiao.cqbc.yqSetPlate.service.impl;

import cn.yuanqiao.cqbc.yqSetPlate.domain.YqCarrierHdda;
import cn.yuanqiao.cqbc.yqSetPlate.service.YqCarrierHddaService;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lyk
 * @since 2022-12-02
 */
@Service
public class YqCarrierHddaServiceImpl implements YqCarrierHddaService {

    @Override
    public void add(YqCarrierHdda param){
        //YqCarrierHdda entity = getEntity(param);
        //this.save(entity);
    }

    @Override
    public void delete(YqCarrierHdda param){
        //this.removeById(getKey(param));
    }

    @Override
    public void update(YqCarrierHdda param){
        //YqCarrierHdda oldEntity = getOldEntity(param);
        //YqCarrierHdda newEntity = getEntity(param);
        //ToolUtil.copyProperties(newEntity, oldEntity);
        //this.updateById(newEntity);
    }

    @Override
    public YqCarrierHdda findBySpec(YqCarrierHdda param){
        return null;
    }

    @Override
    public List<YqCarrierHdda> findListBySpec(YqCarrierHdda param){
        return null;
    }

//    @Override
//    public LayuiPageInfo findPageBySpec(YqCarrierHdda param){
//        Page pageContext = getPageContext();
//        IPage page = this.baseMapper.customPageList(pageContext, param);
//        return LayuiPageFactory.createPageInfo(page);
//    }

    /*private Serializable getKey(YqCarrierHdda param){
        return null;
    }

    private Page getPageContext() {
        return LayuiPageFactory.defaultPage();
    }

    private YqCarrierHdda getOldEntity(YqCarrierHdda param) {
        return this.getById(getKey(param));
    }

    private YqCarrierHdda getEntity(YqCarrierHdda param) {
        YqCarrierHdda entity = new YqCarrierHdda();
        ToolUtil.copyProperties(param, entity);
        return entity;
    }*/

}
